import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/national',
    name: 'National',
    component: () => import(/* webpackChunkName: "national" */ '../views/National/National.vue')
  },
  {
    path: '/survey',
    name: 'Survey',
    component: () => import(/* webpackChunkName: "survey" */ '../views/Survey/Survey.vue')
  },
  {
    path: '/business',
    name: 'Business',
    component: () => import(/* webpackChunkName: "business" */ '../views/Business/Business.vue')
  },
  {
    path: '/network',
    name: 'Network',
    component: () => import(/* webpackChunkName: "network" */ '../views/Network/Network.vue')
  },
  {
    path: '/monitor',
    name: 'Monitor',
    component: () => import(/* webpackChunkName: "monitor" */ '../views/Monitor/Monitor.vue')
  }
]

const router = new VueRouter({
  mode: "hash",
  routes
})

export default router
